﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace com.ruovea.gogs.entity
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("public_key")]
    public partial class PublicKeyEntity
    {
           public PublicKeyEntity(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")]
           public int Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="owner_id")]
           public int OwnerId {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="name")]
           public string Name {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="fingerprint")]
           public string Fingerprint {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="content")]
           public string Content {get;set;}

           /// <summary>
           /// Desc:
           /// Default:2
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="mode")]
           public int Mode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:1
           /// Nullable:False
           /// </summary>           
           [SugarColumn(ColumnName="type")]
           public int Type {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="created_unix")]
           public int? CreatedUnix {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="updated_unix")]
           public int? UpdatedUnix {get;set;}

    }
}
